home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5436 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: firechat.uucp.netcom.com!Benski
  2. Subject: Re: Best way to make a circle
  3. Newsgroups: comp.lang.c
  4. From: Benski@firechat.uucp.netcom.com
  5. Date: Thu, 08 Feb 96 08:11:51 EST
  6. Message-ID: <8264167616301@firechat.uucp.netcom.com>
  7. References: <1996Feb8.043040.19301@lafn.org>
  8. Organization: Fire Chat On-Line
  9.  
  10.  
  11.  
  12. AN>I am working on 3d Graphics quite succesfully as of now and am trying to
  13. AN>put together a good Graphics library that is much faster than BGI drivers.
  14. AN>I know that Sin and Cosine take to much time to calculate... so... which
  15. AN>way should I do it?
  16.  
  17.  
  18. AN>Thanks
  19. AN>--
  20. AN> Hofstadter's Law:                   |       o__
  21. AN>    It always takes longer than you expect, even   |     _.</)_
  22. AN>    when you take Hofstadter's Law into account.   |    (_) \(_)
  23. AN>        " Godel Escher Bach"               | Andres, an234@lafn.org
  24.  
  25.  
  26. Use a 360 element array of floating (or fixed) point numbers, in which
  27. each one corresponds to the sin (or cosine) of it's element
  28.  
  29. ie:
  30.   Cos_Table[180] == Cosine(180)
  31.  
  32. This speeds up runtime calculations for drawing circles, ellipses,
  33. 2d-spheres, arcs, etc. greatly
  34.  
  35. Benski
  36. ========================= !!! Automated Notice !!! =======================
  37.  E-mail replies to this user should have the following on the first line  
  38.  of message text:        TO: Benski
  39. ============================================================================
  40.  
  41.